package com.qcs.sleep.warn;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.qcs.sleep.SplashActivity;

/**
 * Created by chshqiang on 13-10-2.
 * 用于启动服务的广播监听器
 */
public class CallBroadcast extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Intent t = new Intent();
        t.setClass(context, SplashActivity.class);
        t.putExtra(Constance.KEY_BROADCAST_ACTION, intent.getAction());

        context.startActivity(t);
    }
}
